package com.lemon.springcloud.core.component.rabbitmq;


import com.lemon.core.mqapi.producer.RabbitMQImpl;
import java.util.regex.Pattern;

/**
 * @author lemon
 * @ClassName RabbitMQ
 * @desc rabbitmq工具类
 * @Date 2018/11/8 12:54
 * @Version 1.0
 **/
public class RabbitMQ extends RabbitMQImpl {

    /*
     * rabbitmq protocol pattern
     */
    private static final Pattern RABBITMQ_PROTOCOL_PATTERN = Pattern.compile("rabbitmq://((?<user>[^/]*)/(?<password>[^;]*)@)?(?<host>[^:]*):(?<port>\\d+)");

    //  Matcher matcher = RABBITMQ_PROTOCOL_PATTERN.matcher(rabbitmqProtocol);
    //  StringBuilder infoBuilder = new StringBuilder();

    public RabbitMQ(String host, Integer port, String username, String password, String virtualHost) {
        super(host, port, username, password, virtualHost);
    }
}
